import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import api from "./api/apiConfig";
import ajax from "./api/http";
import $crypto from "@/lib/crypto";
import commonJs from "@/lib/common";
import {
  Button,
  Icon,
  Tooltip,
  LocaleProvider,
  Tag,
  Collapse,
  Tabs,
  Form,
  Input,
  message,
  Modal,
  List,
  Select,
  DatePicker,
  Table
} from "ant-design-vue";
import "@/styles/common.less";
import "@/styles/reset.css";
Vue.use(Icon);
Vue.use(Button);
Vue.use(Tooltip);
Vue.use(LocaleProvider);
Vue.use(Tag);
Vue.use(Collapse);
Vue.use(Tabs);
Vue.use(Form);
Vue.use(Input);
Vue.use(Modal);
Vue.use(List);
Vue.use(Select);
Vue.use(DatePicker);
Vue.use(Table);
Vue.prototype.$message = message;
Vue.prototype.$api = api;
Vue.prototype.$ajax = ajax;
Vue.config.productionTip = false;
Vue.prototype.$crypto = $crypto;
Vue.prototype.$commonJs = commonJs;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
